import request from '@/utils/request'

// 查询公司成本列表
export function listAnxinCompanyCosts(query) {
  return request({
    url: '/costs/anxinCompanyCosts/list',
    method: 'get',
    params: query
  })
}

// 查询公司成本详细
export function getAnxinCompanyCosts(id) {
  return request({
    url: '/costs/anxinCompanyCosts/' + id,
    method: 'get'
  })
}

// 保存公司成本
export function saveAnxinCompanyCosts(data) {
  return request({
    url: '/costs/anxinCompanyCosts/save',
    method: 'post',
    data: data
  })
}

// 删除公司成本
export function delAnxinCompanyCosts(id) {
  return request({
    url: '/costs/anxinCompanyCosts/' + id,
    method: 'delete'
  })
}

// 导出公司成本
export function exportAnxinCompanyCosts(query) {
  return request({
    url: '/costs/anxinCompanyCosts/export',
    method: 'get',
    params: query
  })
}

// 收款汇总成本点击单元格查询
export function findSummaryInfo(params) {
  return request({
    url: '/costs/anxinCompanyCosts/findSummaryInfo',
    method: 'get',
    params: params
  })
}
